package com.dudu.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolUtils {

	
	private ExecutorService executorService = Executors.newFixedThreadPool(100); 
	
	private  ThreadPoolUtils(){
		
	}
	
	private static ThreadPoolUtils instance = null;
	
	public static ThreadPoolUtils getThreadPoolUtils(){
		
		if(instance == null){
			
			instance = new ThreadPoolUtils();
		}
		
		return instance;
	}

	
	public ExecutorService getExecutorService() {
		return executorService;
	}
	
}
